<!--样例数据表格弹框-->
<template>
    <view>
        <uni-popup ref="tableDialog" background-color="#fff">
            <view class="tableDialog">
                <view v-if="tableType == 'invoice'">
                    <image :src="require('../../static/invoice.jpg')" style="width: 100%;height: 8000rpx"></image>
                </view>
                <view v-if="tableType == 'taxInfo'">
                    <image :src="require('../../static/taxInfo.jpg')" style="width: 100%;height: 5300rpx"></image>
                </view>
            </view>
        </uni-popup>
    </view>
</template>

<script>

export default {

    data() {
        return {
            tableType: ''
        }
    },
    created() {


    },
    methods: {
        open(val) {
            this.tableType = val
            this.$refs.tableDialog.open('bottom')
        },
    }
}
</script>

<style lang="scss" scoped>
.tableDialog {
    width: 100vw;
    height: 80vh;
    border-radius: 32rpx;
    position: relative;
    overflow-y: scroll;
    padding: 40rpx 20rpx;
}

.data-cell {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    //padding: 20rpx 12rpx; /* 将像素单位换成 rpx */
    border-right: 1rpx solid #ccc;
    /* 将像素单位换成 rpx */
    border-bottom: 1rpx solid #ccc;
    /* 将像素单位换成 rpx */
    word-break: break-all;
    word-wrap: break-word;
    color: #333333;
    font-size: 26rpx;
    line-height: 48rpx;
    /* 根据需要调整行高，单位为 rpx */
    background-color: #fff;
    overflow: initial;
}

.taxAnyClass,
.financial {
    /deep/ .data-row {
        &:first-child {
            .data-cell {
                background: #F1F5F9;
                font-weight: 500;
            }
        }
    }
}

.tabClass {
    .first {
        width: 110rpx;
        height: 48rpx;
        background: #e5e5e5;
        font-size: 26rpx;
        color: #111111;
        line-height: 48rpx;
        text-align: center;
        border-radius: 6rpx 0 0 6rpx;
        font-weight: 500;
    }

    .second {
        border-radius: 0 6rpx 6rpx 0;
    }

    .active {
        color: #ffffff;
        background: #488afd;
    }
}
</style>